<!DOCTYPE html>
<html>
<head>
    <meta charset='UTF-8' />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
    <title>线上讨论</title>
    <meta charset='UTF-8' />
    <link rel="stylesheet" href="resources/css/meeting/chat.css">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <script src="app/js/common/Web_SDK_Base_v2.4.0.js"></script>
    <script src="app/js/common/Web_SDK_Chatroom_v2.4.0.js"></script>
    <script src="app/js/common/Web_SDK_NIM_v2.4.0.js"></script>
    <script src="app/js/common/emoji.js"></script>

    <script src="business/resource/js/jquery-1.11.1.min.js"></script>
    <script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="app/js/common/vue.min.js"></script>
    <script src="app/js/common/hprose.js"></script>
    <script src="app/js/common.js?v=<?=VERSION?>"></script>
</head>

<body>
<div class="content">

    <!-- 聊天内容 -->
    <div id="content">
        <p class="freChat">正在刷新</p>
        <div class="news clearfix" v-for="msg in msgs" v-bind:class="{'newsFrom':msg.isLeft, 'newsTo':msg.isRight}" v-cloak>
            <div class="avatar" v-cloak>
                <img v-bind:src="msg.fromAvatar" v-cloak>
            </div>
            <div class="newsOther" v-cloak>
                <p class="name" v-text="msg.fromNick" v-cloak></p>
                <span class="newsCon" v-html="msg.text" v-cloak></span>
            </div>
        </div>
    </div>
    <!-- 聊天内容 -->
    <!-- 输入框 -->
    <div id="foot">
        <div class="entering clearfix">
            <img src="http://static.cyyzjk.com/FkTPb0m_tA04AhQAa139310bXaiV" alt="emoji" class="emoji" v-on:click="showEmoji()"/>
            <input type="text" id="message" class="enteringInput btn" v-model="text" v-bind:placeholder="placeholdertext" v-bind:disabled="sDisable">
            <div class="send btn" v-on:click="sendMessage" v-bind:class="{'send_disable':sDisable}">发送</div>
        </div>
        <div id="emojiTagDiv" v-bind:class="{'show':isEmojiShow}">
            <div id="emojiTag">
                <span v-for="(emoji,index) in emojis">
                    <img v-bind:src="'business/images/emoji/'+emoji.file" v-bind:val="index" v-on:click="selectEmoji(index)"  v-bind:alt="index" style='width: 7.52%;height: auto;padding:0.773%;'>
                </span>
            </div>
        </div>
    </div>

</div>
</body>
</html>